Path: / {BASE} / config / data / {key}

Return the string or list value for the configuration key passed as argument.

Path parameters:
key - the configuration key for which to return the value

Resource Methods
Method Summary
NameDescription
GET /{BASE}/config/data/{key}Return the string or list value for the configuration key passed as argument.
POST /{BASE}/config/data/{key}?type=…&comment=…Set the configuration with the key passed in the path argument.
DELETE /{BASE}/config/data/{key}Delete the configuration with the key passed in the path argument.

Method Detail

GET /{BASE}/config/data/{key}

Return the string or list value for the configuration key passed as argument.

HTTP Example:
GET /{BASE}/config/data/{key}
API Example:

ConfigurationWebService.getConfiguration({'key': /* key the configuration key for which to return the value */});

Output:
Response - the value of the requested configuration
Produces:
application/json
HTTP return codes:
200 - if the configuration key exists
404 - if the configuration key does not exist

POST /{BASE}/config/data/{key}

Set the configuration with the key passed in the path argument. The input has to be a JSON list of String values sent in the body of the request

HTTP Example:
POST /{BASE}/config/data/{key}?type=…&comment=…
API Example:

ConfigurationWebService.setConfiguration({'type': /* Set the configuration with the key passed in the path argument. */,
  'comment': /* Set the configuration with the key passed in the path argument. */,
  'key': /* key the configuration key to set */});

Output:
Response - OK if the value was set correctly, ERROR if parsing failed
Query parameters:
type
comment
Consumes:
application/json
HTTP return codes:
200 - if the configuration was set
400 - if the input sent in the body could not be parsed

DELETE /{BASE}/config/data/{key}

Delete the configuration with the key passed in the path argument.

HTTP Example:
DELETE /{BASE}/config/data/{key}
API Example:

ConfigurationWebService.deleteConfiguration({'key': /* key the configuration to remove */});

Output:
Response - 200 (OK) if the configuration was removed successfully, 500 (server error) otherwise
HTTP return codes:
200 - if the configuration was removed successfully
500 - if there was an error while removing the configuration